import createAxios from '/@/utils/axios'

export const apiUrl = '/api/ai.draw'

// 提交绘画
export function submit_draw(params: any) {
    return createAxios({
        url: apiUrl + '/submit',
        method: 'post',
        data: params,
    })
}

// 获取绘画图片
export function get_image(params: any) {
    return createAxios({
        url: apiUrl + '/get_image',
        method: 'get',
        params,
    })
}

// 获取绘画列表
export function get_list(params: any) {
    return createAxios({
        url: apiUrl + '/get_list',
        method: 'get',
        params,
    })
}

// 获取样式
export function get_style(params: any) {
    return createAxios({
        url: apiUrl + '/get_style',
        method: 'get',
        params,
    })
}
